package com.xiangxiao.rpan.settings.consumer;

import com.alibaba.fastjson.JSONObject;
import com.xiangxiao.rpan.settings.consumer.callback.StorageClientCall;
import com.xiangxiao.rpan.settings.dto.FileListConfigDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2024/1/9 11:31
 */
@FeignClient(value = "rpan-storage", fallback = StorageClientCall.class)
public interface IConsumerStorageClient {
  @PostMapping("/api/site/config/storage")
  JSONObject queryStorageConfigs(@RequestBody FileListConfigDto fileListConfigDto);
}
